package com.carlinfo.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class InPutStreamMain {
	public static void main(String[] args) {
		System.out.println("====");
		String path = "E:/1.txt";
		File fis = new File(path);
		try {
			FileInputStream fi = new FileInputStream(fis);
			byte[] b = new byte[3];
			int length = 0;
			while((length = fi.read(b))!= -1) {
				String str = new String(b,0,length);
				System.out.print(str);
			}
			fi.close();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	private static void whlie(boolean b) {
		// TODO Auto-generated method stub
		
	}

}
